

const resolve = dir => require('path').join(__dirname, dir)

module.exports = {
  publicPath: process.env.NODE_ENV === 'production'? '/wiki/' : '/',
  lintOnSave: false,
  productionSourceMap: false,
  devServer: {
    host: '0.0.0.0',
    port: 12380,
  },
  chainWebpack: config => {
    config.resolve.alias
     .set('@', resolve('src'))
     .set('assets', resolve('src/assets'))
   }
}